package com.hubu.core;

import java.util.Map;

/**
 *
 *
 * 删除的handler
 */
public class DeleteHandler extends Handler{
    @Override
    protected Result handle(Database database, String commandType, Map.Entry<String,String> entry){
        String v= database.delete(entry.getKey());
        Result result=new Result();
        result.setObject(v);
        result.setDataType("string");
        return result;
    }
}
